<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2018/10/19
  Time: 15:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../bootstrap/js/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <title>修改</title>
    <style>
        #back{
            float: right;
        }
        h3{
            text-align: center;
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
<c:set var="root" value="${pageContext.request.contextPath}"/>
<h3>修改信息</h3>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-4 column">
        </div>
        <div class="col-md-4 column">
            <form role="form" action="${root}/updateServlet" method="post">
                <%--name与Customer中的属性名一致!!!!!!!!    一定要写name!!!!!       才可以取到值！！！！！！--%>
                <input type="hidden" value="${category.cid}" name="cid">
                <div class="form-group">
                    <label for="name">物品名称</label><input type="text" class="form-control" id="name" name="cname" value="${category.cname}"/>
                </div>
                <button type="submit" class="btn btn-default">提交</button>
                <a href="${root}/allServlet">
                    <button type="button" class="btn btn-default btn-primary" id="back">返回</button>
                </a>
            </form>
        </div>
        <div class="col-md-4 column">
        </div>
    </div>
</div>
</body>
</html>
